package tju.mic.medicine.ws.repo;


import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import tju.mic.medicine.ws.models.Department;
import tju.mic.medicine.ws.models.DepartmentList;

/**
 *
 * @author tjusnow
 */
public interface DepartRepository extends CrudRepository<Department,Long>{

    @Query("select a from Department a order by a.departId ")
    public DepartmentList getAllList();
    
   
}
